home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LIFER__
/
PROTO
/
U
/
FILEMENU.C
< prev
next >
Wrap
Text File
|
1991-07-23
|
2KB
|
132 lines
/* FileMenu Handle this menu list */
/* Unit name: FileMenu.c */
/* Function: Handle this specific menu list. */
/* History: 7/23/91 Original by Prototyper 3.0 */
#include "PCommonLife.h" /* Common */
#include "Common_Life.h" /* Common */
#include "PUtils_Life.h" /* General Utilities */
#include "Utils_Life.h" /* General Utilities */
#include "FileMenu.h" /* This file */
/* ======================================================= */
/* Routine: Do_FileMenu */
/* Purpose: Handle any menu items in this list specially. */
/* Get the main handler to ignore this menu item by changing */
/* SkipProcessing to be TRUE. */
/* This routine is called before the main handler does anything */
/* when Doing_Pre is TRUE, it is called after the main handler */
/* again with Doing_Pre equal to FALSE. */
void Do_FileMenu( Doing_Pre, theItem, SkipProcessing) /* Handle this menu selection */
Boolean Doing_Pre;
short theItem;
Boolean *SkipProcessing;
{
*SkipProcessing = FALSE; /* Set to not skip the processing of this menu item */
switch (theItem) /* Handle all commands in this menu list */
{
case MItem_New:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Open:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Close:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Save:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Save_As:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Revert_to_Saved:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Page_Setup:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Print:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
case MItem_Quit:
if (Doing_Pre == TRUE)
{
}
else
{
}
break;
default:
break;
} /* End of item case */
} /* End of procedure */
/* ======================================================= */